﻿@model ADIGRE.Domain.View.vwLivroCaixa
@using ADIGRE.Domain
@{
    ViewBag.Title = "Livro Caixa";
    Layout = "~/Views/Shared/_LayoutLogado.cshtml"; 
}
@using (Html.BeginForm())
{
    <div style="float: left; padding: 5px 8px;">
        @Html.LabelFor(model => model.DtPeriodoInicial)
        @Html.DisplayFor(model => model.DtPeriodoInicial) -
        @Html.DisplayFor(model => model.DtPeriodoFinal)
    </div>
    
    <div style="float: right" class="no-print">
        @Html.LabelFor(model => model.DtReferencia)
        @Html.DropDownListFor(model => model.NuMes, (IEnumerable<SelectListItem>)ViewBag.Meses, "Mês", null)
        @Html.DropDownListFor(model => model.NuAno, (IEnumerable<SelectListItem>)ViewBag.Anos, "Ano", null)
        <input type="submit" class="btn-gold" value="Pesquisar" />
    </div>
    <br />
    <br />
    <div>
        @{Html.RenderPartial("_Lancamentos", Model);}
    </div>
     
}
<p style="text-align: center;">
    <a onclick="javascritp:window.history.back(1);" class="btn-gold">Voltar</a>
</p>
@section Style {
    <style type="text/css">
        select { min-width: 90px; }
        .livro { border: 1px solid Gray; }
        .livro td { border-top: 1px solid Gray; padding: 0 2px 0 2px; }
        .lancamento { border-left: 1px solid Gray; }
        .lancamento-anterior label { font-weight: normal; }
    </style>
}
@section Script {
    <script type="text/javascript">
    </script>
}
